package com.powermanagertest;

import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;

public class NetWorkService extends Service {

    public static final String KEY = "key";

    public static final int DOWN_LOAD = 0;
    public static final int SCAN = 1;
    private DownlodThread mDownlodThread = new DownlodThread(new Handler());
    private final String DownPath = "http://file2.mydrivers.com/display/307.73-desktop-winxp-32bit-international-whql.exe";

    @Override
    public void onCreate() {
        // TODO Auto-generated method stub
        super.onCreate();
    }

    @Override
    public void onStart(Intent intent, int startId) {
        // TODO Auto-generated method stub
        mDownlodThread.startThread(DownPath, 0);
        super.onStart(intent, startId);
    }

    @Override
    public void onDestroy() {
        mDownlodThread.stopThread();
        super.onDestroy();
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO Auto-generated method stub
        return null;
    }

}
